remus: init sch_plug module based on kernel version
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Fri, 5 Apr 2013 15:16:05 +0000 (15:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 8 Apr 2013 15:05:56 +0000 (16:05 +0100)
commit5753fe1c92efb3cc0142dadf8c82d5fb9ea80418
tree8b7372ab4e4133f6b8f39d3d8064c039e0150f73
parent99b9ab0b3e7f0e7e5786116773cb7b746f3fab87
remus: init sch_plug module based on kernel version

remus: init sch_plug module based on kernel version

sch_plug module, for network buffering, is available as part of linux
kernel (from 3.4 onwards), as opposed to an out-of-tree module.
The netlink message format to talk to the in-kernel module is different from
that of the old version.  So, before initializing the Plug Qdisc, check
the kernel version and use the appropriate message format.

Also change the names of the constants to reflect the format used by the mainline
module [CHECKPOINT -> BUFFER , RELEASE -> RELEASE_ONE ].

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
tools/python/xen/remus/device.py
tools/python/xen/remus/qdisc.py